package com.dcinside.gallery.programming.captchabreak.ui;

import org.eclipse.swt.SWT;
import org.eclipse.swt.events.PaintEvent;
import org.eclipse.swt.events.PaintListener;
import org.eclipse.swt.graphics.Image;
import org.eclipse.swt.graphics.ImageData;
import org.eclipse.swt.widgets.Canvas;
import org.eclipse.swt.widgets.Composite;

import prg.SWTApplication;

public class Program
{
    public static void main( String[] args ) throws Exception
    {
        new SWTApplication()
        {
            protected Canvas canvas;

            @Override
            protected void createControl( Composite parent )
            {
                // TODO Auto-generated method stub
                Image image = new Image( display,
                    "D:\\CAPTCHA break\\code.php.png" );
                ImageData data = image.getImageData();
                canvas = new Canvas( parent, SWT.NONE );
                canvas.addPaintListener( new PaintListener()
                {
                    public void paintControl( PaintEvent e )
                    {
                        // TODO Auto-generated method stub

                    }
                } );
            }
        }.run();
    }
}
